﻿<UserControl x:Class="DocumentManagement.Views.OptionReportUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:vm="clr-namespace:DocumentManagement.ViewsModels"
             mc:Ignorable="d" 
             d:DesignHeight="430" d:DesignWidth="829" Background="AliceBlue">
    <UserControl.Resources>
        <vm:OptionReportUserControlViewsModel x:Key="optionReportUserControlViewsModel"/>
    </UserControl.Resources>
    
    <Grid DataContext="{Binding Source={StaticResource optionReportUserControlViewsModel}}">
        <Button Content="ตกลง" FontFamily="Tahoma" FontSize="14" FontWeight="Bold" Height="29" HorizontalAlignment="Left" Margin="284,362,0,0" Name="OKButton" VerticalAlignment="Top" Width="75" Click="OKButton_Click" />
        <RadioButton Content="รายงานหนังสือเข้าทั้งหมด" FontFamily="Tahoma" FontSize="14" Height="24" HorizontalAlignment="Left" Margin="38,82,0,0" Name="ReportINAllRadioButton" VerticalAlignment="Top" FontWeight="Bold" Checked="ReportINAllRadioButton_Checked" />
        <RadioButton Content="รายงานหนังสือออกทั้งหมด" FontFamily="Tahoma" FontSize="14" Height="22" HorizontalAlignment="Left" Margin="38,121,0,0" Name="ReportOutAllRadioButton" VerticalAlignment="Top" FontWeight="Bold" />
        <TextBlock FontFamily="Tahoma" FontSize="18" FontWeight="Bold" Height="23" HorizontalAlignment="Left" Margin="346,21,0,0" Name="textBlock1" Text="เลือกรายงานที่ต้องการ" VerticalAlignment="Top" />
        <RadioButton Content="รายงานหนังสือเข้าจากหน่วยงาน" FontFamily="Tahoma" FontSize="14" Height="22" HorizontalAlignment="Left" Margin="38,163,0,0" Name="ReportInFromDivisionRadioButton" VerticalAlignment="Top" FontWeight="Bold" />
        <RadioButton Content="รายงานหนังสือออกถึงหน่วยงาน" FontFamily="Tahoma" FontSize="14" Height="22" HorizontalAlignment="Left" Margin="38,202,0,0" Name="ReportOutToDivisionRadioButton" VerticalAlignment="Top" FontWeight="Bold" />
        <RadioButton Content="รายงานหนังสือเข้าตามช่วงวันที่" FontFamily="Tahoma" FontSize="14" Height="22" HorizontalAlignment="Left" Margin="38,246,0,0" Name="ReportInDateRadioButton" VerticalAlignment="Top" FontWeight="Bold" />
        <RadioButton Content="รายงานหนังสือออกตามช่วงวันที่" FontFamily="Tahoma" FontSize="14" Height="22" HorizontalAlignment="Left" Margin="38,284,0,0" Name="ReportOutDateRadioButton" VerticalAlignment="Top" FontWeight="Bold" />
        <DatePicker FontFamily="Tahoma" FontSize="14" Height="30" HorizontalAlignment="Left" Margin="321,242,0,0" Name="DocumentINDatePicker1" SelectedDate="{Binding Path=MyReceive.DocumentDate, Mode=TwoWay}" TabIndex="2" Width="147" VerticalAlignment="Top" DisplayDate="2/28/2013" />
        <TextBlock FontFamily="Tahoma" FontSize="14" FontWeight="Bold" Height="23" HorizontalAlignment="Left" Margin="264,246,0,0" Name="textBlock2" Text="จากวันที่" VerticalAlignment="Top" />
        <TextBlock FontFamily="Tahoma" FontSize="14" FontWeight="Bold" Height="23" HorizontalAlignment="Left" Margin="264,285,0,0" Name="textBlock3" Text="จากวันที่" VerticalAlignment="Top" />
        <TextBlock FontFamily="Tahoma" FontSize="14" FontWeight="Bold" Height="23" HorizontalAlignment="Left" Margin="496,246,0,0" Name="textBlock4" Text="ถึงวันที่" VerticalAlignment="Top" />
        <TextBlock FontFamily="Tahoma" FontSize="14" FontWeight="Bold" Height="23" HorizontalAlignment="Left" Margin="496,284,0,0" Name="textBlock5" Text="ถึงวันที่" VerticalAlignment="Top" />
        <Button Content="ยกเลิก" FontFamily="Tahoma" FontSize="14" FontWeight="Bold" Height="29" HorizontalAlignment="Left" Margin="435,362,0,0" Name="CancelButton" VerticalAlignment="Top" Width="75" Click="CancelButton_Click" />
        <ComboBox DisplayMemberPath="ThaiName" FontFamily="Tahoma" FontSize="14" Height="33" ItemsSource="{Binding Path=EntityModels.Divisions}" Margin="271,159,0,0" Name="FormDivisionIDcomboBox" TabIndex="4" Width="199" VerticalAlignment="Top" HorizontalAlignment="Left" SelectedValue="{Binding Path=MyReceive.FormDivisionID, Mode=TwoWay}" SelectedValuePath="DivisionID" />
        <ComboBox DisplayMemberPath="ThaiName" FontFamily="Tahoma" FontSize="14" Height="33" HorizontalAlignment="Left" ItemsSource="{Binding Path=EntityModels.Divisions}" Margin="271,199,0,0" Name="ToDivisionIDcomboBox" SelectedValue="{Binding Path=MyReceive.FormDivisionID, Mode=TwoWay}" SelectedValuePath="DivisionID" TabIndex="4" VerticalAlignment="Top" Width="199" />
        <DatePicker FontFamily="Tahoma" FontSize="14" Height="30" HorizontalAlignment="Left" Margin="321,281,0,0" Name="DocumentOUTDatePicker1" SelectedDate="{Binding Path=MyReceive.DocumentDate, Mode=TwoWay}" TabIndex="2" VerticalAlignment="Top" Width="147" />
        <DatePicker FontFamily="Tahoma" FontSize="14" Height="30" HorizontalAlignment="Left" Margin="546,242,0,0" Name="DocumentINDatePicker2" SelectedDate="{Binding Path=MyReceive.DocumentDate, Mode=TwoWay}" TabIndex="2" VerticalAlignment="Top" Width="147" />
        <DatePicker FontFamily="Tahoma" FontSize="14" Height="30" HorizontalAlignment="Left" Margin="546,281,0,0" Name="DocumentOUTDatePicker2" SelectedDate="{Binding Path=MyReceive.DocumentDate, Mode=TwoWay}" TabIndex="2" VerticalAlignment="Top" Width="147" />
    </Grid>
</UserControl>
